<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require_once ('BaseService.php');

class BitacorasService extends BaseService {

    public function __construct($serviceBaseURL) {
        parent::__construct($serviceBaseURL);
    }

    public function getServiceClass() {
        return "Bitacoras";
    }

    function Create(Bitacoras $Bitacora) {
        $serializer = parent::getSerializer(parent::getMimeType(), "Bitacoras");
        $data = $serializer->serialize($Bitacora);
        $response = parent::invokeService("Create", $data);
        return $response;
    }

    function GetByPracticante($IdPracticante) {
        $response = parent::invokeService("GetByPracticante", $IdPracticante);
        $result = $response;

        if ($this->shouldDecode) {
            Loader::using("models::entities::Bitacoras");
            $decoder = parent::getSerializer(parent::getMimeType(), "Bitacoras", Bitacoras::MAPPING());
            $result = $decoder->deserializeArray($response);
        }

        return $result;
    }

}

?>
